package org.exez.modules.visitor.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.util.Date;

/**
 * @Description: 访客申请记录表
 * @Author: exez-boot
 * @Date: 2020-06-04
 * @Version: V1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "警员登记添加对象", description = "警员登记添加对象")
public class PoliceVisitSaveVO {

    /**
     * 警员姓名
     */
    @ApiModelProperty(value = "警员姓名",required = true)
    @Length(min=2, max=20, message="警员姓名长度必须在2-20之间")
    @NotBlank(message = "警员姓名不能为空")
    private String name;
    /**
     * 警员电话号码
     */
    @ApiModelProperty(value = "警员电话号码",required = true)
    @Pattern(regexp = "^[1]\\d{10}$",message = "请输入正确的手机号")
    @NotBlank(message = "警员电话号码不能为空")
    private String mobile;
    /**
     * 警员身份证号
     */
    @ApiModelProperty(value = "警员身份证号",required = true)
    @Pattern(regexp = "[1-9]\\d{13,16}[a-zA-Z0-9]{1}",message = "请输入正确的身份证号")
    @NotBlank(message = "警员身份证号不能为空")
    private String identityValue;


    /**
     * 所属单位
     */
    @ApiModelProperty(value = "所属单位",required = true)
    @NotBlank(message = "所属单位不能为空")
    private String institutionName;

    /**
     * 车牌号
     */
    @ApiModelProperty(value = "车牌号")
    private java.lang.String numberPlate;

    /**
     * 人脸采集(拍正面照)
     */
    @Excel(name = "人脸采集(拍正面照)", width = 15)
    @ApiModelProperty(value = "人脸采集(拍正面照)",required = true)
    private java.lang.String facePhoto;

}
